import { api } from 'boot/axios'
import { CommonApiPrefix } from 'src/common/const'

// 录量排行
export const getClueRank = (params: CommonType.ReqDataType | any): Promise<CommonType.ResDataType<any>> => {
  return api.get(`${CommonApiPrefix}/bi/cluerank`, { params })
}

export const getClueSourceRank = (params: CommonType.ReqDataType | any): Promise<CommonType.ResDataType<any>> => {
  return api.get(`${CommonApiPrefix}/bi/cluesourcerank`, { params })
}

export const getClueCourseRank = (params: CommonType.ReqDataType | any): Promise<CommonType.ResDataType<any>> => {
  return api.get(`${CommonApiPrefix}/bi/cluecourserank`, { params })
}
// 部门统计
export const getDepartmentRank = (params: CommonType.ReqDataType | any): Promise<CommonType.ResDataType<any>> => {
  return api.get(`${CommonApiPrefix}/bi/departmentrank`, { params })
}

export const getDepartmentSourceRank = (params: CommonType.ReqDataType | any): Promise<CommonType.ResDataType<any>> => {
  return api.get(`${CommonApiPrefix}/bi/departmentsourcerank`, { params })
}

export const getDepartmentCourseRank = (params: CommonType.ReqDataType | any): Promise<CommonType.ResDataType<any>> => {
  return api.get(`${CommonApiPrefix}/bi/departmentcourserank`, { params })
}